package com.stylefeng.guns.common.persistence.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.stylefeng.guns.common.persistence.model.TDriver;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.core.datascope.DataScope;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stylefeng123
 * @since 2018-01-30
 */
public interface TDriverMapper extends BaseMapper<TDriver> {

    List<Map<String, Object>> selectDriverList(Pagination page, @Param("dataScope") DataScope dataScope, @Param("name") String name, @Param("deptid") Integer deptid);

    TDriver getByDriver(@Param("driver_name")String driver_card,@Param("id")Integer id);

}
